Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added millibar as pressure unit #34

Merged
merged 5 commits into from
Oct 16, 2017
Merged

Conversation

teunw
Copy link

@teunw teunw commented Oct 11, 2017

No description provided.

Copy link
Owner

@jordanbrauer jordanbrauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update forgotten unit data from the copy/paste file creation 😆


->setSymbol("bar")

->setUnits(100000000)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure you had the correct amount of units the first time (1 millibar === 100 pascal) 😃 .

image

protected function configure () : void
{
$this
->setName("bar")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the name to "millibar".

$this
->setName("bar")

->setSymbol("bar")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the symbol to "mbar".

Source: wikipedia page – Bar (unit)
image

We won't use the millibar mb notation since mb is reserved for the computer data units.

Copy link
Owner

@jordanbrauer jordanbrauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if I confused you with the units though 😆
They should 100, not 1 (1 is pascal since all Pressure units are based off Pascal)


->setUnits(100000000)
->setUnits(1)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Units should be 100 (1 millibar === 100 pascal)

@jordanbrauer jordanbrauer added this to the Production Ready v1.0.0 milestone Oct 13, 2017
@jordanbrauer
Copy link
Owner

LGTM! 👍

@jordanbrauer jordanbrauer merged commit 9a6eed0 into jordanbrauer:develop Oct 16, 2017
jordanbrauer added a commit that referenced this pull request Nov 12, 2017
* remove composer.lock from repo and add it to .gitignore (#30)

* Implement Kilopascal and Megapascal and write tests (#29)

* implement Kilopascal

* implement Megapascal

* fix docblocks

* Fix: add missing self conversions for temperature units (#31)

* Feature/improve travis file (#32)

* update .travis.yml

* Added time measurements (#35)

Closes #10 

* Added time measurements

* Added requested changes

* Added new time units

* Feat: add simple contributing guide for now (#36)

* Added last weight measures (#37)

* Added last weight measures

* Fixed stone units

* Added millibar as pressure unit (#34)

* Added millibar as pressure unit

* Fixed wrong millibar, also fixed documentation block

* Added requested changes

* Added requested changes

* Fixed millibar units

* scientificSymbol property, getter and setter are added (#47)

closes #46

* Add first set of dev docs (#44)

* Update: composer docs cmd now uses bash script to check for stale docs

* Update: phpDocumentor XML config file

* Feat: docs for v0.3.9-alpha (#43)

* Update: move docs directory to project root for github pages support

* Adding energy units (#33)

* Properly casing unit symbols

* Adding requested energy units

* Removing unnecessary imports

* Upgrade: docs & composer version

* Fix: Energy integration test - wrong unit case for Joule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants